/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.mahumLogs.utils;

import com.jcraft.jsch.Channel;
import com.jcraft.jsch.JSchException;
import com.jcraft.jsch.Session;
import com.mahumLogs.backedbeans.Log;
import com.mahumLogs.backedbeans.LogError;
import com.mahumLogs.backedbeans.LogsCalendarDate;
import com.mahumLogs.backedbeans.TopSite;
import com.mahumLogs.beans.ScanLogsBean;
import com.mahumLogs.ejb.PeriodicScanEJB;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Calendar;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;
import javax.transaction.HeuristicMixedException;
import javax.transaction.HeuristicRollbackException;
import javax.transaction.NotSupportedException;
import javax.transaction.RollbackException;
import javax.transaction.SystemException;
import org.primefaces.context.RequestContext;

/**
 *
 * @author Kalast
 */
public class AnalyseProcess extends Thread{
    private ScanLogsBean scan;
    
    public AnalyseProcess(ScanLogsBean scan) {
        this.scan = scan;
    }
    
    @Override
    public void run() {
        //ArrayList<RemoteLogsFile> filesToAnalyse = new ArrayList();

                    // Vérification des fichiers
                   /* for(int i = 0; i < fileToScan.size() && analyseRunning; i ++){
                        
         fileToAnalyse = fileToScan.get(i);
         System.out.println("Start for " + fileToAnalyse.getFilename());
         infosMessage = "L'analyse du fichier '" + fileToAnalyse.getFilename() + "' commence.";
         copyLogsFileToDB();
         }*/
        // Récupération des logs
        
    }
    
    
}
